]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[workspace] Ensure we emit drag-end if we're in a drag during a destroy
authorColin Walters <walters@verbum.org>
Thu, 18 Mar 2010 20:39:11 +0000 (16:39 -0400)
committerColin Walters <walters@verbum.org>
Thu, 18 Mar 2010 20:58:16 +0000 (16:58 -0400)
Showing the window overlay relies on drag-end being emitted, so do so if we're
in a drag.

js/ui/workspace.js

index 522c251c2961b72f061c1374a6ff7004592d3dec..e010e8dd16ef155cc92bf6f7c63e627ad5d134d4 100644 (file)
@@ -204,6 +204,11 @@ WindowClone.prototype = {
         if (this._zoomLightbox)
             this._zoomLightbox.destroy();
 
+        if (this._inDrag) {
+            this.emit('drag-end');
+            this._inDrag = false;
+        }
+
         this.disconnectAll();
     },